Skip to content

styles: make the layout aware of the header height [beta] - #2688

Open
thomasbuilds wants to merge 3 commits into
monero-project:betafrom
thomasbuilds:patch-1
Open

styles: make the layout aware of the header height [beta]#2688
thomasbuilds wants to merge 3 commits into
monero-project:betafrom
thomasbuilds:patch-1

Conversation

@thomasbuilds

@thomasbuilds thomasbuilds commented Jul 24, 2026

Copy link
Copy Markdown

Nothing in the layout knows how tall the header is, so every rule that has to clear it carries its own guess. There are ten of them and they disagree with each other and with the header. This fixes the three things that fall out of that, starting with the M behind the hero, which isn't vertically centered.

@thomasbuilds thomasbuilds changed the title styles: make the layout aware of the header height styles: make the layout aware of the header height [beta] Jul 24, 2026
@github-actions

Copy link
Copy Markdown
What Link
🕵️‍♂️ Review Files changed
🌐 Deploy Preview #2688

Each target carried its own offset, most keyed to a 1200px breakpoint
and one to nothing at all, but the header is sticky except under
`(width >= 1200px) and (hover: hover)`. None of them matched that, so
anchored headings could land under the header instead of below it.

Declare the header height and derive one offset from it.
It was set as both a margin and a padding, so every page carried double.
The 404 height calc had been tuned around the doubled value, so it is
rewritten off the header height and the real spacing.
Out of flow it cleared the header by hand and `.main-content` reserved
its space, so the logo sat under the header and off-centre, the text
could run into the next section on short viewports, and the section
stopped short of filling the screen on phones.

Back in flow the layout clears the header and reserves the hero's space
on its own; sizing it to the screen below the header does the rest. The
fixed inline insets go too, so the hero follows the content column.
@nahuhh

nahuhh commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Deploy failed cc @plowsof

@plowsof

plowsof commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

thanks @nahuhh , the main url was moved to beta.getmonero.org and coolify gave us a helping hand and set the preview url to that without telling me, fixed now

@thomasbuilds

thomasbuilds commented Jul 24, 2026

Copy link
Copy Markdown
Author

yes nice we can visually compare my change now between this and beta.getmonero.org quickly

@nahuhh

nahuhh commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The M behind the hero seems to maintain its position between deploy and germonero.org, but deploy is larger

@thomasbuilds

Copy link
Copy Markdown
Author

The M now extends to the available height (this also fixes the incorrect vertical centering). Also on mobile the section wasn't taking up the full height before, so you could see the About section underneath which I think looks ugly. I just re-verified this with iPhone XR in chrome DevTools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants